//
//  AL-DataModel.m
//  22-homework-QQMV-ALi
//
//  Created by 王道林 on 16/8/13.
//  Copyright © 2016年 王道林. All rights reserved.
//

#import "AL-DataModel.h"
#import "AL-ModelPic.h"
@implementation AL_DataModel


- (void)setValue:(id)value forKey:(NSString *)key
{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"data"]) {
        NSMutableArray *marr = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            AL_ModelPic *model = [AL_ModelPic modelWithDic:dic];
            [marr addObject:model];
        }
        _data = marr;
    }
}


@end
